package com.hkrt.demo.domain.interactor

import com.hkrt.demo.di.scope.PerActivity
import com.hkrt.demo.domain.fetcher.result_listener.RequestType
import com.hkrt.demo.domain.repository.HkrtRepository
import javax.inject.Inject

/**
* @author  Chenjinguang
* @date 26.08.2017.
*/
@PerActivity
class CommentInteractor @Inject constructor( val hkrtRepository: HkrtRepository) {

    fun getComments(shotId: String) = hkrtRepository.getShotComments(shotId)

    fun deleteCommentsCache() {
        hkrtRepository.deleteCacheFor(RequestType.COMMENTS)
    }
}